/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ceair.flight.refund.location.dt.dto;

import com.ceair.flight.refund.location.model.SegmentDO;

import java.math.BigDecimal;

/**
 *
 * @author youguilin
 */
public class SegPrice {

    private String dep;

    private String arr;

    private BigDecimal segPrice;

    private BigDecimal segSalePrice;

    private BigDecimal taxAmount;
    private long segPoints;

    public SegPrice() {
    }

    public SegPrice(SegmentDO segmentDO) {
        this.segPrice = segmentDO.getFcny();
        this.segSalePrice = segmentDO.getScny();
        this.taxAmount = segmentDO.getTaxAm();
        BigDecimal points = segmentDO.getPointAmount();
        if (points != null) {
            segPoints = points.longValue();
        }
    }

    public long getSegPoints() {
        return segPoints;
    }

    public void setSegPoints(long segPoints) {
        this.segPoints = segPoints;
    }

    public String getDep() {
        return dep;
    }

    public void setDep(String dep) {
        this.dep = dep;
    }

    public String getArr() {
        return arr;
    }

    public void setArr(String arr) {
        this.arr = arr;
    }

    public BigDecimal getSegPrice() {
        return segPrice;
    }

    public void setSegPrice(BigDecimal segPrice) {
        this.segPrice = segPrice;
    }

    public BigDecimal getSegSalePrice() {
        return segSalePrice;
    }

    public void setSegSalePrice(BigDecimal segSalePrice) {
        this.segSalePrice = segSalePrice;
    }

    public BigDecimal getTaxAmount() {
        return taxAmount;
    }

    public void setTaxAmount(BigDecimal taxAmount) {
        this.taxAmount = taxAmount;
    }

}
